//
//  CustomizeLoverCell.m
//  Molian
//
//  Created by 胡津 on 4/6/2015.
//  Copyright (c) 2015年 xiaocan. All rights reserved.
//

#import "CustomizeLoverCell.h"

@implementation CustomizeLoverCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.accessoryType = UITableViewCellAccessoryNone;
        
        
        // 打电话
        self.callPhone = [[UIButton alloc]init];
        self.callPhone.frame = CGRectMake(DeviceWidth-70, 10, 60, 30);
        self.callPhone.layer.masksToBounds = YES;
        [self.callPhone.layer setCornerRadius:15.0f];
        self.callPhone.titleLabel.font = [UIFont fontWithName:FontName size:14];
        [self.callPhone setImage:[UIImage imageNamed:@"mine_--lover invitation_call_icon"] forState:UIControlStateNormal];
        [self.callPhone setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
        [self.callPhone setBackgroundColor:APPCOLOR(1)];
        [self.contentView addSubview:self.callPhone];
        
        // 资费
        self.priceLabel = [[UILabel alloc]init];
        self.priceLabel.frame = CGRectMake(10, 55, DeviceWidth-20, 30);
        self.priceLabel.font = [UIFont fontWithName:FontName size:14];
        self.priceLabel.textColor = [UIColor darkGrayColor];
        self.priceLabel.textAlignment = NSTextAlignmentLeft;
        [self.priceLabel.layer setCornerRadius:5.0f];
        [self.priceLabel.layer setBorderColor:UIColorFromRGB(0xe2ddd2).CGColor];
        [self.priceLabel.layer setBorderWidth:0.5f];
        [self.contentView addSubview:self.priceLabel];

        
        // 时间
        self.timeLabel = [[UILabel alloc]init];
        self.timeLabel.frame = CGRectMake(DeviceWidth-70, 55, 50, 30);
        self.timeLabel.font = [UIFont fontWithName:FontName size:11];
        self.timeLabel.textAlignment = NSTextAlignmentRight;
        self.timeLabel.textColor = UIColorFromRGB(0x999999);
        [self.contentView addSubview:self.timeLabel];
        
    }
    return self;
}


-(void)layoutSubviews
{
    [super layoutSubviews];
    

}



/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
